package com.atguigu.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 1、整和Mybatis Plus
 * 1）、在common中引入Mybatis-Plus的依赖
 * 2）、引入mysql的驱动
 * 3）、在application.yml中配置数据源和Mybatis-plus的信息
 *      @MapperScan("com.atguigu.gulimall.product.dao")：告诉mapper文件所在的位置
 */
@MapperScan("com.atguigu.gulimall.product.dao")
@SpringBootApplication
@EnableDiscoveryClient
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
